<%@ page language="java" contentType="text/xml; charset=UTF-8" pageEncoding="UTF-8"  trimDirectiveWhitespaces="true" session="false" %>
<%@include file="../include/taglibs.jsp"%>
<%@include file="../include/urls.jsp"%>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<c:set var="boardUrl" value="${boardsUrl}${board.id}/" />

<board>
   	<link rel="self" href="${boardUrl}" />
	<size>${board.size}</size>
	<game>
	 	<link rel="self" href="${gamesUrl}${board.game.id}" />
	</game>
	<player>
		<link rel="self" href="${playersUrl}${board.player.name}" />
	</player>
	<buzzwords>
	<c:set var="row" value="0" scope="page" />
	<c:forEach var="rowList" items="${board.buzzwordList}">
		<c:set var="col" value="0" scope="page" />
		<c:forEach var="buzzword" items="${rowList}">
		<buzzword>
			<row>${row}</row>
			<col>${col}</col>
			<text>${buzzword.buzzword}</text>
			<marked>${buzzword.marked}</marked>
		</buzzword>
		<c:set var="col" value="${col+1}" scope="page" />
		</c:forEach>
		<c:set var="row" value="${row+1}" scope="page" />
	</c:forEach>	
	</buzzwords>
</board>